var http=require('http'),fs=require('fs');

http.createServer(function (req, res) {
    res.writeHead(200);
    fs.createReadStream('2.txt',{encoding:'utf8'}).pipe(res);
}).listen(3000, function () {
    console.log('port 3000');
});